# frozen_string_literal: true
# rubocop:todo all

class Phone
  include Mongoid::Document

  field :_id, type: String, overwrite: true, default: ->{ number }
  field :number
  field :ext, as: :extension
  field :landline, type: Boolean

  embeds_one :country_code
  embedded_in :person
end
